package com.tledu.spring06.spring01.service;

import com.tledu.spring06.spring01.dao.UserDao;

/**
 * @author Antg
 * @date 2021/8/519:34
 */
public class UserServiceImpl2 implements UserService {
    private UserDao userDao;

    public UserServiceImpl2(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public void testService() {
        System.out.println("通过构造方法注入");
        userDao.daoTest();
    }
}
